//
//  HMWebViewController.swift
//  WeiBoSwift
//
//  Created by hgj on 2016/11/27.
//  Copyright © 2016年 HuGuoJian. All rights reserved.
//

import UIKit

class HMWebViewController: UIViewController {

    let webView = UIWebView()

    var urlString: String?
    
    
    override func loadView() {
        view = webView
        
        loadPage()
    }
    
    private func loadPage() {
        guard let urlStr = urlString else { return }
        
        let url = URL(string: urlStr)
        let reuqest = URLRequest(url: url!)
        webView.loadRequest(reuqest)
    }
    
}
